import { axios } from '@/utils/request'

/**
 * 查询专业表
 *
 * @author levin
 * @date 2022-07-04 15:29:36
 */
export function sysMajorPage (parameter) {
  return axios({
    url: '/sysMajor/page',
    method: 'post',
    data: parameter
  })
}

/**
 * 专业表列表
 *
 * @author levin
 * @date 2022-07-04 15:29:36
 */
export function sysMajorList (parameter) {
  return axios({
    url: '/sysMajor/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加专业表
 *
 * @author levin
 * @date 2022-07-04 15:29:36
 */
export function sysMajorAdd (parameter) {
  return axios({
    url: '/sysMajor/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑专业表
 *
 * @author levin
 * @date 2022-07-04 15:29:36
 */
export function sysMajorEdit (parameter) {
  return axios({
    url: '/sysMajor/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除专业表
 *
 * @author levin
 * @date 2022-07-04 15:29:36
 */
export function sysMajorDelete (parameter) {
  return axios({
    url: '/sysMajor/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出专业表
 *
 * @author levin
 * @date 2022-07-04 15:29:36
 */
export function sysMajorExport (parameter) {
  return axios({
    url: '/sysMajor/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
